﻿using Camc.Quality.QualityAnalysis.RFormBase;
using Camc.Quality.QualityAnalysis.RFormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.QualityAnalysis.RFormEntity
{
    public class R产品安装确认表 : RTableBase
    {
        public R产品安装确认表(int serialNum, Guid rWorkStepEntityId, Guid rProcessesEntityId, int sort, string recordElement,string recordRemark)
        {
            SerialNum = serialNum;
            RWorkStepEntityId = rWorkStepEntityId;
            RProcessesEntityId = rProcessesEntityId;
            Sort = sort;
            RecordElement = recordElement;
            RecordRemark = recordRemark;
        }
        public override string FormName { get; protected set; } = "产品安装确认表";

        #region A10_检查项目
        public override string RecordElement_DisplayName { get; protected set; } = "检查项目";

        #endregion
        /// <summary>
        /// 设计要求
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="processorDemand"></param>
        /// <param name="remarks"></param>
        /// <returns></returns>
        public RRecordRequirementsEntity SetRecordRequirements(RRecordRequirementsEntity entity, string processorDemand, string remarks)
        {
            entity.SetProcessorDemand(processorDemand, "检查情况");

            entity.SetRemarks(remarks, "备注");

            return entity;
        }
        /// <summary>
        /// 实测值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="measuredActual"></param>
        /// <returns></returns>
        public RMeasuredResultEntity SetMeasuredResult(RMeasuredResultEntity entity, string measuredActual)
        {
            entity.SetMeasuredActual(measuredActual, "检查结果");
            return entity;
        }


    }
}
